<template>
  <div id="app">
    <Headerpart/>
    <div id="main">
      <Leftpart/>
      <Rightpart :mainbody = 'mainbody'/>
    </div>
  </div>
</template>

<script>
import Headerpart from './components/Headerpart'
import Leftpart from './components/Leftpart'
import Rightpart from './components/Rightpart'
export default {
  name: 'app',
  components: {
    Headerpart,Leftpart,Rightpart
  },
  data(){
    return{
      mainbody :'',
    }
  },
  created(){
    var vm = this;
    vm.$http.get("http://www.mypiconline.com/index/index/get_json").then(function(res){
      vm.mainbody = res.data
    },function(err){
      console.log(err);
    })

  }

}
</script>

<style>
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video{margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; outline: none; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
#main{
  width: 100%;
  height: 100%;
  background-color: #e7e7e7;
  min-width: 1200px;
  min-height: 600px;
}

</style>
